home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 103
/
Vol 103.iso
/
games
/
tontie_h.swf
/
scripts
/
DefineSprite_241
/
frame_97
/
PlaceObject2_240_1
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2010-03-13
|
860b
|
37 lines
onClipEvent(load){
if(_parent.item == 0)
{
k = Math.floor(Math.random() * 5);
if(k > 2)
{
_parent._parent._parent._parent.enemy_i = 0;
_parent._parent._parent.joutai = "down";
with(this)
{
gotoAndStop("non");
}
}
else
{
_root.sound("item_on");
k = Math.floor(Math.random() * 5 + 1);
if(k <= 4)
{
this.gotoAndStop("coin");
}
else if(k == 4)
{
this.gotoAndStop("life");
}
_parent._parent._parent._parent.enemy_i = 2;
_parent._parent._parent.k = _root.top_stay;
}
}
else
{
_root.sound("item_on");
_parent._parent._parent._parent.enemy_i = 2;
this.gotoAndStop(_parent.item);
}
}